export default [
  {
    path: "/bookStore",
    name: "bookStore",
    component: () => import("@/views/bookStore"),
    meta: {
      setShowFooter: true
    }
  },
  {
    path: "/bookStore/:id",
    name: "bookDetail",
   
    component: () => import("@/views/bookStore/bookDetail"),
    props: (route) => ({
      filmId: route.params.id ? Number(route.params.id) : 0,
    }),
    redirect: '/bookStore/:id/pages',
    children:[
      {
        path:'pages',
        name:'pages',
        component:()=>import('@/views/bookStore/detail_pages')
      },
      {
        path:'intro',
        name:'intro',
        component:()=>import('@/views/bookStore/detail_intro')
      },
      {
        path:'comment',
        name:'comment',
        component:()=>import('@/views/bookStore/detail_comment')
      },
    ],
    
  },
  {
    path:'/bookStore/:id/pages/content',
    name:'content',
    component:()=>import('@/views/bookStore/bookContent')
  },
];
